package com.deneme.ozveri.clicklisteners;

import com.deneme.ozveri.activities.OrderDetailActivity;
import com.deneme.ozveri.activities.OrderListActivity;
import com.deneme.ozverimenu.R;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;

public class TitleBarOnClickListener implements OnClickListener {
	
	Activity currActivity;
	
	public TitleBarOnClickListener(Activity actvty) {
		currActivity = actvty;
	}

	@Override
	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.titlebar_callwaiter_btn:
		
			break;
		case R.id.titlebar_orders_btn:
			Intent intent = new Intent(currActivity, OrderListActivity.class);			
			currActivity.startActivity(intent);
			break;

		default:
			break;
		}
		
	}

}
